package com.qdu.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.CurrentTerm;
import com.qdu.mapper.CurrentTermMapper;
import com.qdu.service.CurrentTermService;
@Service
public class CurrentTermServiceImpl implements CurrentTermService {

	@Autowired
	CurrentTermMapper currentTermMapper;
	
	@Override
	public CurrentTerm getCurrentTerm(int termId) {
		return currentTermMapper.getCurrentTerm(termId);
	}

	@Override
	public boolean addCurrentTerm(int termId) {
		return currentTermMapper.addCurrentTerm(termId);
	}

	@Override
	public boolean modifyCurrentTerm(int termId) {
		return currentTermMapper.modifyCurrentTerm(termId);
	}

	@Override
	public boolean deleteCurrentTerm(int termId) {
		return currentTermMapper.deleteCurrentTerm(termId);
	}

	@Override
	public CurrentTerm getAllCurrentTerm() {
		return currentTermMapper.getAllCurrentTerm();
	}

}
